import * as types from '../../mutation-types/account/index';

const state = {
    bindFacebook: false,
    bindStatus: false,
    bindGoogle: false,
    bindGoogleStatus: false
};

const mutations = {
    [types.BIND_FACEBOOK](state, {bindFacebook}) {
        state.bindFacebook = bindFacebook;
    },
    [types.BIND_STATUS](state, {bindStatus}) {
        state.bindStatus = bindStatus;
    },
    [types.BIND_GOOGLE](state, {bindGoogle}) {
        state.bindGoogle = bindGoogle;
    },
    [types.BIND_GOOGLE_STATUS](state, {bindGoogleStatus}) {
        state.bindGoogleStatus = bindGoogleStatus;
    }
};

export default {
    state,
    mutations
};